4. Integration by Parts

Recall:       \(\displaystyle \int u\,dv=u\,v-\int v\,du\)   where   \(du=\dfrac{du}{dx}\,dx\)   and   \(dv=\dfrac{dv}{dx}\,dx\)

d. Recurrence of the Integral

2. Reduction Formulas

Integration by parts can also be used to derive formulas which can be applied repeatedly to simplify an integral. The derivation again involves the recurrence of the original integral.

\[ \int \cos^n x\,dx =\dfrac{1}{n}\cos^{n-1}x\sin x+\dfrac{n-1}{n}\int \cos^{n-2}x\,dx \] (Do not memorize the reduction formulas.)

We first do integration by parts with \[\begin{array}{ll} u=\cos^{n-1}x & dv=\cos x\,dx \\ du=-(n-1)\cos^{n-2}x\sin x\,dx \quad & v=\sin x \end{array}\] So: \[ \int \cos^n x\,dx =\cos^{n-1}x\sin x+\int (n-1)\cos^{n-2}x\sin^2 x\,dx \] Within the remaining integral, we use the identity \(\sin^2 x=1-\cos^2 x\), multiply out the integrand and write the remaining integral as a sum of two integrals:: \[\begin{aligned} \int \cos^n x\,dx &=\cos^{n-1}x\sin x+(n-1)\int \cos^{n-2}x(1-\cos^2 x)\,dx \\ &=\cos^{n-1}x\sin x+(n-1)\int \cos^{n-2}x-\cos^n x\,dx \\ &=\cos^{n-1}x\sin x+(n-1)\int \cos^{n-2}x\,dx-(n-1)\int \cos^n x\,dx \end{aligned}\] Once again, the original integral recurs on the right. So we solve for it: \[\begin{aligned} n\int \cos^n x\,dx &=\cos^{n-1}x\sin x+(n-1)\int \cos^{n-2}x\,dx \\ \int \cos^n x\,dx &=\dfrac{1}{n}\cos^{n-1}x\sin x+\dfrac{n-1}{n}\int \cos^{n-2}x\,dx \end{aligned}\] which is the desired reduction formula. Note, we do not need a \(+C\) because there is still an unevaluated integral on the right.

Use the reduction formula \[ \int \cos^n x\,dx =\dfrac{1}{n}\cos^{n-1}x\sin x+\dfrac{n-1}{n}\int \cos^{n-2}x\,dx \] to compute \(\displaystyle \int \cos^2 x\,dx\) and \(\displaystyle \int \cos^4 x\,dx\).

We first use the reduction formula with \(n=2\): \[ \int \cos^2 x\,dx =\dfrac{1}{2}\cos^1 x\sin x+\dfrac{1}{2}\int 1\,dx \] To complete this, we do the integral: \[ \int \cos^2 x\,dx =\dfrac{\sin x\cos x}{2}+\dfrac{x}{2}+C \] Next, we use the reduction formula with \(n=4\): \[ \int \cos^4 x\,dx =\dfrac{1}{4}\cos^3 x\sin x+\dfrac{3}{4}\int \cos^2 x\,dx \] and substitute in the formula for \(\displaystyle \int \cos^2 x\,dx\): \[\begin{aligned} \int \cos^4 x\,dx &=\dfrac{1}{4}\cos^3 x\sin x +\dfrac{3}{4}\left(\dfrac{\sin x\cos x}{2}+\dfrac{x}{2}\right)+C \\ &=\dfrac{\cos^3 x\sin x}{4}+\dfrac{3\sin x\cos x}{8}+\dfrac{3x}{8}+C \end{aligned}\] Of course you could also do either integral by using the trig identity \(\cos^2 x=\dfrac{1+\cos 2x}{2}\). We will cover that method in more detail in the chapter on Trig Integrals.

Derive a reduction formula for \(\displaystyle \int \sin^n x\,dx\)

\(\displaystyle \int \sin^n x\,dx =-\,\dfrac{1}{n}\sin^{n-1}x\cos x+\dfrac{n-1}{n}\int \sin^{n-2}x\,dx\)

We first do integration by parts with \[\begin{array}{ll} u=\sin^{n-1}x & dv=\sin x\,dx \\ du=(n-1)\sin^{n-2}x\cos x\,dx \quad & v=-\cos x \end{array}\] So: \[ \int \sin^n x\,dx =-\sin^{n-1}x\cos x+\int (n-1)\sin^{n-2}x\cos^2 x\,dx \] Within the resulting integral, we use the identity \(\cos^2 x=1-\sin^2 x\), multiply out the integrand and write the resulting integral as a sum of two integrals:: \[\begin{aligned} \int \sin^n x\,dx &=-\sin^{n-1}x\cos x+(n-1)\int \sin^{n-2}x(1-\sin^2 x)\,dx \\ &=-\sin^{n-1}x\cos x+(n-1)\int \sin^{n-2}x-\sin^n x\,dx \\ &=-\sin^{n-1}x\cos x+(n-1)\int \sin^{n-2}x\,dx-(n-1)\int \sin^n x\,dx \end{aligned}\] Once again, the original integral recurs on the right. So we solve for it: \[\begin{aligned} n\int \sin^n x\,dx &=-\sin^{n-1}x\cos x+(n-1)\int \sin^{n-2}x\,dx \\ \int \sin^n x\,dx &=-\,\dfrac{1}{n}\sin^{n-1}x\cos x+\dfrac{n-1}{n}\int \sin^{n-2}x\,dx \end{aligned}\] which is the desired reduction formula.

Using this reduction formula, compute the integral \(\displaystyle \int \sin^3 x\,dx\).

\(\displaystyle \int \sin^3 x\,dx =-\,\dfrac{1}{3}\sin^2 x\cos x-\dfrac{2}{3}\cos x+C\)

Let's start with the reduction formula: \[ \int \sin^n x\,dx =-\,\dfrac{1}{n}\sin^{n-1}x\cos x+\dfrac{n-1}{n}\int \sin^{n-2}x\,dx \] Plugging in \(n=3\), we get \[\begin{aligned} \int \sin^{3} x\,dx &=-\,\dfrac{1}{3}\sin^2 x\cos x+\dfrac{2}{3}\int \sin x\,dx \\ &=-\,\dfrac{1}{3}\sin^2 x\cos x-\dfrac{2}{3}\cos x+C \end{aligned}\]

We check by differentiating. If \(f=-\,\dfrac{1}{3}\sin^2 x\cos x-\dfrac{2}{3}\cos x\), then \[\begin{aligned} f'&=-\,\dfrac{2}{3}\sin x\cos^2 x+\dfrac{1}{3}\sin^3 x+\dfrac{2}{3}\sin x \\ &=-\,\dfrac{2}{3}\sin x(1-\sin^2 x)+\dfrac{1}{3}\sin^3 x+\dfrac{2}{3}\sin x \\ &=\sin^3 x \end{aligned}\]

The integral can also be done with the substitution \(u=\cos x\) and \(du=-\sin x\,dx\): \[\begin{aligned} \int \sin^3 x\,dx &=\int (1-\cos^2 x)\sin x\,dx =-\int (1-u^2)\,du \\ &=-u+\dfrac{u^3}{3}+C =-\cos x+\dfrac{\cos^3 x}{3}+C \end{aligned}\] We check this is equivalent to the previous solution: \[\begin{aligned} -\,\dfrac{1}{3}\sin^2 x\cos x-\dfrac{2}{3}\cos x+C &=-\,\dfrac{1}{3}(1-\cos^2 x)\cos x-\dfrac{2}{3}\cos x+C \\ &=-\cos x+\dfrac{\cos^3 x}{3}+C \end{aligned}\]

© MYMathApps

Supported in part by NSF Grant #1123255